package com.zzz.mcpclient.config;


import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ClientConfig {

    @Bean
    public ChatClient initChatClient(ChatClient.Builder chatClientBuilder,
                                     ToolCallbackProvider mcpTools) {
        return chatClientBuilder.defaultTools(mcpTools).build();
    }


}
